class ProgramInformationTablesController < ApplicationController
  def index
    @program_information_tables = ProgramInformationTable.all
  end

  def show
    @program_information_table = ProgramInformationTable.find(params[:id])
  end

  def new
    @program_information_table = ProgramInformationTable.new
  end

  def create
    @program_information_table = ProgramInformationTable.new(params[:program_information_table])
    if @program_information_table.save
      redirect_to @program_information_table, :notice => "Successfully created program information table."
    else
      render :action => 'new'
    end
  end

  def edit
    @program_information_table = ProgramInformationTable.find(params[:id])
  end

  def update
    @program_information_table = ProgramInformationTable.find(params[:id])
    if @program_information_table.update_attributes(params[:program_information_table])
      redirect_to @program_information_table, :notice  => "Successfully updated program information table."
    else
      render :action => 'edit'
    end
  end

  def destroy
    @program_information_table = ProgramInformationTable.find(params[:id])
    @program_information_table.destroy
    redirect_to program_information_tables_url, :notice => "Successfully destroyed program information table."
  end
end
